import { createApp } from 'vue'
import App from './App.vue'
// 引入全局样式
import "@/styles/index.scss";
// vue-router
import router from './router';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入全局组件
import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
import Login from '@/components/login/index.vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
// 引入国际化
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import pinia from '@/store'
// svg插件需要配置代码
import "virtual:svg-icons-register";
// 引入路由鉴权的文件
import './permission'
const app = createApp(App)
app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Login', Login)
app.component('SvgIcon', SvgIcon)
app.use(ElementPlus, {
    locale: zhCn,
})
app.use(pinia)
app.use(router)
app.mount('#app')